home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / tex / texchang.arc / bibtex next >
Text File  |  1990-03-16  |  8KB  |  373 lines

  1. BibTeX change file for the Atari ST
  2. Author: Nico Poppelier.
  3. Date  : December 27, 1988.
  4.  
  5. Since the Prospero Pascal compiler strictly adheres to the
  6. ISO Pascal standard (level 0), all occurrences of ':0' or ': 0'
  7. in write and writeln statements have to be replaced by
  8. ':1' and ': 1', respectively.
  9. (This was reported to Oren Patashnik, see TeXhax of Dec 88).
  10.  
  11. @x
  12. @d banner=='This is BibTeX, Version 0.99c' {printed when the program starts}
  13. @y
  14. @d banner=='This is BibTeX, Version 0.99c for the Atari ST' {printed when the pr
  15.    ogram starts}
  16. @z
  17.  
  18. @x
  19. @d term_out == tty
  20. @d term_in == tty
  21. @y
  22. Files 'input' and 'output' are used for terminal input and output.
  23. Prospero Pascal for the Atari ST requires us to mention
  24. |input| and |output| in the program header.
  25. @d term_out == output
  26. @d term_in == input
  27. @z
  28.  
  29. @x
  30. @d debug == @{          { remove the `|@{|' when debugging }
  31. @d gubed == @t@>@}      { remove the `|@}|' when debugging }
  32. @y
  33. @d debug ==             { we are debugging }
  34. @d gubed == @t@>
  35. @z
  36.  
  37. @x
  38. @d stat == @{           { remove the `|@{|' when keeping statistics }
  39. @d tats == @t@>@}       { remove the `|@}|' when keeping statistics }
  40. @y
  41. @d stat ==              { we are keeping statistics }
  42. @d tats == @t@>
  43. @z
  44.  
  45. @x
  46. @d othercases == others: {default for cases not listed explicitly}
  47. @y
  48. @d othercases == otherwise {default for cases not listed explicitly}
  49. @z
  50.  
  51. @x
  52. program BibTEX;                 {all files are opened dynamically}
  53. @y
  54. program BibTEX(@!input,@!output); {these files have to be specified here}
  55. @z
  56.  
  57. @x
  58. @<Compiler directives@>=
  59. @{@&$C-,A+,D-@}  {no range check, catch arithmetic overflow, no debug overhead}
  60. @!debug @{@&$C+,D+@}@+ gubed  {but turn everything on when debugging}
  61. @y
  62. On the Atari ST, things are different: Prospero Pascal does
  63. not allow in-comment directives
  64. @<Compiler directives@>=
  65. @z
  66.  
  67. @x
  68.     write_ln (term_out,bad:0,' is a bad bad');
  69. @y
  70.     write_ln (term_out,bad:1,' is a bad bad');
  71. @z
  72.  
  73. @x
  74. @!alpha_file=packed file of text_char;  {files that contain textual data}
  75. @y
  76. @!alpha_file=text;      {files that contain textual data}
  77. @z
  78.  
  79. @x
  80. @d reset_OK(#)==erstat(#)=0
  81. @d rewrite_OK(#)==erstat(#)=0
  82. @y
  83. @d reset_OK(#)==fstat(#)
  84. @d rewrite_OK(#)==fstat(#)
  85. @z
  86.  
  87. @x
  88. function erstat(var f:file):integer; extern; {in the runtime library}
  89. @y
  90. @z
  91.  
  92. @x
  93. begin reset(f,name_of_file,'/O'); a_open_in:=reset_OK(f);
  94. @y
  95. begin assign(f,name_of_file);
  96.       reset(f); a_open_in:=reset_OK(name_of_file);
  97. @z
  98.  
  99. @x
  100. begin rewrite(f,name_of_file,'/O'); a_open_out:=rewrite_OK(f);
  101. @y
  102. begin assign(f,name_of_file);
  103.       rewrite(f); a_open_out:=rewrite_OK(name_of_file);
  104. @z
  105.  
  106. @x
  107. procedure a_close(var f:alpha_file);  {close a text file}
  108. begin close(f);
  109. @y
  110. procedure a_close(var f:alpha_file);  {close a text file}
  111. begin close(f, true);
  112. @z
  113.  
  114. @x
  115. @d overflow(#)==begin           {fatal error---close up shop}
  116.                 print_overflow;
  117.                 print_ln(#:0);
  118. @y
  119. @d overflow(#)==begin           {fatal error---close up shop}
  120.                 print_overflow;
  121.                 print_ln(#:1);
  122. @z
  123.  
  124. @x
  125.     confusion ('Illegal string number:',s:0);
  126. @y
  127.     confusion ('Illegal string number:',s:1);
  128. @z
  129.  
  130. @x
  131. print ('---line ',cur_aux_line:0,' of file ');
  132. @y
  133. print ('---line ',cur_aux_line:1,' of file ');
  134. @z
  135.  
  136. @x
  137. print ('A level-',aux_ptr:0,' auxiliary file: ');
  138. @y
  139. print ('A level-',aux_ptr:1,' auxiliary file: ');
  140. @z
  141.  
  142. @x
  143. print ('--line ',bst_line_num:0,' of file ');
  144. @y
  145. print ('--line ',bst_line_num:1,' of file ');
  146. @z
  147.  
  148. @x
  149.   trace_pr_ln (' is an integer literal with value ',token_value:0);
  150. @y
  151.   trace_pr_ln (' is an integer literal with value ',token_value:1);
  152. @z
  153.  
  154. @x
  155.     print (single_ptr + wiz_def_ptr : 0,': ');
  156. @y
  157.     print (single_ptr + wiz_def_ptr : 1,': ');
  158. @z
  159.  
  160. @x
  161. print ('--line ',bib_line_num:0,' of file ');
  162. @y
  163. print ('--line ',bib_line_num:1,' of file ');
  164. @z
  165.  
  166. @x
  167.     print ('Database file #',bib_ptr+1:0,': ');
  168. @y
  169.     print ('Database file #',bib_ptr+1:1,': ');
  170. @z
  171.  
  172. @x
  173.     print_ln (total_fields:0,' fields:');
  174. @y
  175.     print_ln (total_fields:1,' fields:');
  176. @z
  177.  
  178. @x
  179. bib_err ('Your field is more than ',buf_size:0,' characters');
  180. @y
  181. bib_err ('Your field is more than ',buf_size:1,' characters');
  182. @z
  183.  
  184. @x
  185.     bib_err ('You''ve exceeded ',max_bib_files:0,' preamble commands');
  186. @y
  187.     bib_err ('You''ve exceeded ',max_bib_files:1,' preamble commands');
  188. @z
  189.  
  190. @x
  191.   trace_pr_ln ('Sorting ',left_end:0,' through ',right_end:0);
  192. @y
  193.   trace_pr_ln ('Sorting ',left_end:1,' through ',right_end:1);
  194. @z
  195.  
  196. @x
  197.     stk_int : trace_pr_ln (lit_stack[lit_stk_ptr]:0);
  198. @y
  199.     stk_int : trace_pr_ln (lit_stack[lit_stk_ptr]:1);
  200. @z
  201.  
  202. @x
  203.     stk_int : print (stk_lt:0,' is an integer literal');
  204. @y
  205.     stk_int : print (stk_lt:1,' is an integer literal');
  206. @z
  207.  
  208. @x
  209.     stk_int : print_ln (stk_lt:0);
  210. @y
  211.     stk_int : print_ln (stk_lt:1);
  212. @z
  213.  
  214. @x
  215.     print_ln ('ptr=',lit_stk_ptr:0,', stack=');
  216. @y
  217.     print_ln ('ptr=',lit_stk_ptr:1,', stack=');
  218. @z
  219.  
  220. @x
  221.       print_ln ('Pointer is ',str_ptr:0,' but should be ',cmd_str_ptr:0);
  222. @y
  223.       print_ln ('Pointer is ',str_ptr:1,' but should be ',cmd_str_ptr:1);
  224. @z
  225.  
  226. @x
  227.         bst_string_size_exceeded (ent_str_size:0,', the entry');
  228. @y
  229.         bst_string_size_exceeded (ent_str_size:1,', the entry');
  230. @z
  231.  
  232. @x
  233.             bst_string_size_exceeded (glob_str_size:0,', the global');
  234. @y
  235.             bst_string_size_exceeded (glob_str_size:1,', the global');
  236. @z
  237.  
  238. @x
  239.         print ('There aren''t ',pop_lit2:0,' names in "');
  240. @y
  241.         print ('There aren''t ',pop_lit2:1,' names in "');
  242. @z
  243.  
  244. @x
  245.                 print ('Name ',pop_lit2:0,' in "');
  246. @y
  247.                 print ('Name ',pop_lit2:1,' in "');
  248. @z
  249.  
  250. @x
  251.     print ('Too many commas in name ',pop_lit2:0,' of "');
  252. @y
  253.     print ('Too many commas in name ',pop_lit2:1,' of "');
  254. @z
  255.  
  256. @x
  257. print ('Name ',pop_lit2:0,' of "');
  258. @y
  259. print ('Name ',pop_lit2:1,' of "');
  260. @z
  261.  
  262. @x
  263.     bst_ex_warn (pop_lit1:0,' isn''t valid ASCII');
  264. @y
  265.     bst_ex_warn (pop_lit1:1,' isn''t valid ASCII');
  266. @z
  267.  
  268. @x
  269.     print ('Aborted at line ',bib_line_num:0,' of file ');
  270. @y
  271.     print ('Aborted at line ',bib_line_num:1,' of file ');
  272. @z
  273.  
  274. @x
  275.     trace_pr_ln ('The ',num_bib_files:0,' database files are');
  276. @y
  277.     trace_pr_ln ('The ',num_bib_files:1,' database files are');
  278. @z
  279.  
  280. @x
  281.     trace_pr ('all_marker=',all_marker:0,', ');
  282. @y
  283.     trace_pr ('all_marker=',all_marker:1,', ');
  284. @z
  285.  
  286. @x
  287.     trace_pr_ln ('old_num_cites=',old_num_cites:0)
  288. @y
  289.     trace_pr_ln ('old_num_cites=',old_num_cites:1)
  290. @z
  291.  
  292. @x
  293. trace_pr ('The ',num_cites:0);
  294. @y
  295. trace_pr ('The ',num_cites:1);
  296. @z
  297.  
  298. @x
  299. if (type_list[cite_ptr] = undefined) then
  300.     undefined : trace_pr ('unknown')
  301. @y
  302. if (type_list[cite_ptr] = undefined) then
  303.     trace_pr ('unknown')
  304. @z
  305.  
  306. @x
  307.         trace_pr (' ',entry_ints[int_ent_ptr]:0);
  308. @y
  309.         trace_pr (' ',entry_ints[int_ent_ptr]:1);
  310. @z
  311.  
  312. @x
  313.             trace_pr_ln (wiz_fn_ptr:0,'--end-of-def--')
  314. @y
  315.             trace_pr_ln (wiz_fn_ptr:1,'--end-of-def--')
  316. @z
  317.  
  318. @x
  319.             trace_pr (wiz_fn_ptr:0,'  quote_next_function    ')
  320. @y
  321.             trace_pr (wiz_fn_ptr:1,'  quote_next_function    ')
  322. @z
  323.  
  324. @x
  325.             trace_pr (wiz_fn_ptr:0,'  `');
  326. @y
  327.             trace_pr (wiz_fn_ptr:1,'  `');
  328. @z
  329.  
  330. @x
  331. stat_pr ('You''ve used ',num_cites:0);
  332. @y
  333. stat_pr ('You''ve used ',num_cites:1);
  334. @z
  335.  
  336. @x
  337. stat_pr_ln ('            ',wiz_def_ptr:0,' wiz_defined-function locations,');
  338. @y
  339. stat_pr_ln ('            ',wiz_def_ptr:1,' wiz_defined-function locations,');
  340. @z
  341.  
  342. @x
  343. stat_pr_ln ('            ',str_ptr:0,' strings with ',str_start[str_ptr]:0,
  344. @y
  345. stat_pr_ln ('            ',str_ptr:1,' strings with ',str_start[str_ptr]:1,
  346. @z
  347.  
  348. @x
  349. stat_pr_ln ('and the built_in function-call counts, ', total_ex_count:0,
  350. @y
  351. stat_pr_ln ('and the built_in function-call counts, ', total_ex_count:1,
  352. @z
  353.  
  354. @x
  355.     stat_pr_ln (' -- ',execution_count[blt_in_ptr]:0);
  356. @y
  357.     stat_pr_ln (' -- ',execution_count[blt_in_ptr]:1);
  358. @z
  359.  
  360. @x
  361.                           print_ln ('(There were ',err_count:0,' warnings)');
  362. @y
  363.                           print_ln ('(There were ',err_count:1,' warnings)');
  364. @z
  365.  
  366. @x
  367.                         print_ln ('(There were ',err_count:0,
  368. @y
  369.                         print_ln ('(There were ',err_count:1,
  370. @z
  371.  
  372.  
  373.